<?php

namespace App\Services;

use App\Traits\ApiResponse;

abstract class AbstractBaseService
{
    // 引入api统一返回消息
    use ApiResponse;
    protected static $instance;

    public static function getInstance()
    {
        if (null === self::$instance) {
            if (static::$instance instanceof static){
                return self::$instance;
            }
            static::$instance = new static();
        }
        return self::$instance;
    }
}
